home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 1.1 KB | 56 lines | [TEXT/CWIE] |
- // SourceMode.h
-
- #ifndef SourceMode_h
- #define SourceMode_h
-
- #ifndef Integers_h
- #include "Integers.h"
- #endif
-
- class SourceMode
- {
- public:
- enum Mode
- {
- srcCopy = ::srcCopy,
- srcOr = ::srcOr,
- srcXor = ::srcXor,
- srcBic = ::srcBic,
- notSrcCopy = ::notSrcCopy,
- notSrcOr = ::notSrcOr,
- notSrcXor = ::notSrcXor,
- notSrcBic = ::notSrcBic,
-
- ditherCopy = ::ditherCopy | ::srcCopy,
- ditherOr = ::ditherCopy | ::srcOr,
- ditherXor = ::ditherCopy | ::srcXor,
- ditherBic = ::ditherCopy | ::srcBic,
- notDitherCopy = ::ditherCopy | ::notSrcCopy,
- notDitherOr = ::ditherCopy | ::notSrcOr,
- notDitherXor = ::ditherCopy | ::notSrcXor,
- notDitherBic = ::ditherCopy | ::notSrcBic,
-
- blend = ::blend,
- addPin = ::addPin,
- addOver = ::addOver,
- subPin = ::subPin,
- transparent = ::transparent,
- addMax = ::addMax,
- subOver = ::subOver,
- addMin = ::adMin /* sic */
- };
-
- private:
- Mode mode;
-
- public:
- SourceMode( Mode m ) : mode( m ) {}
-
- static SourceMode Make( int16 value )
- { return static_cast<Mode>( value ); }
-
- int16 Value() const { return mode; }
- };
-
- #endif
-